package cn.hill4j.tool.spring.std.dispatch.controller;

import cn.hill4j.tool.spring.ext.alias.BeansAliasUtils;
import cn.hill4j.tool.spring.ext.dispatcher.exception.DispatchInvokerException;
import cn.hill4j.tool.spring.std.dispatch.alias.AliasTest;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/alias")
public class AliasController {
    @GetMapping("/test/{biz}/{str}")
    public String aliasTest(@PathVariable("biz") String biz,@PathVariable("str") String str) throws DispatchInvokerException {
        return BeansAliasUtils.getBean(biz, AliasTest.class).out(str);
    }

}
